package com.naire.modul.sys_code.service;

import net.common.manager.SystemCodeManager;
import net.common.service.GeneralService;
import com.naire.modul.sys_code.dao.Sys_codeDao;
import com.naire.modul.sys_code.dao.impl.Sys_codeDaoImpl;
import com.naire.modul.sys_code.vo.Sys_codeVo;

/**
 * 
 * 
 * @author Administrator
 * 
 */
public class Sys_codeEditorService extends GeneralService {

	private Sys_codeVo bean;

	@Override
	public void execute() throws Exception {
		Sys_codeDao dao = new Sys_codeDaoImpl();
		if (bean.getSys_code_id() != null) {
			dao.update(bean);
			SystemCodeManager.set(bean);
		}
	}

	public void setBean(Sys_codeVo bean) {
		this.bean = bean;
	}

}
